Skip to content

Harden release workflows and fix XML-RPC HTTP responses - #6

Merged
jdevalk merged 4 commits into
mainfrom
codex/harden-releases-and-xmlrpc
Nov 17, 2026
Merged

jdevalk merged 4 commits into
mainfrom
codex/harden-releases-and-xmlrpc

Conversation

@jdevalk

@jdevalk jdevalk commented Nov 15, 2026 •

Copy link
Copy Markdown
Member

XML-RPC requests previously stopped during init through a wp_die() handler that could return HTTP 200 with an empty body. Return HTTP 403 immediately during plugin loading, remove the unreachable replacement server, and guard direct file access. Normal requests retain the xmlrpc_enabled filter.

Pin every action in all four workflows to a commit SHA, disable checkout credential persistence, and declare read-only default permissions. Replace the archived release action with gh release create; grant contents-write access only to that job and require successful WordPress.org deployment first. Pass the Playground repository name through the environment and skip comments when fork or Dependabot tokens cannot write them. Keep nightly.link with an explicit third-party preview notice.

Run four bootstrap regression scenarios in the PHP 7.4–8.3 CI matrix and exclude test files from plugin packages. Preserve the current README content while correcting the response description and documenting the remaining bootstrap cost, release controls, and preview dependency.

Validation: all five PHP CI jobs pass, including lint and bootstrap regression tests, and Playground passes. WordPress Coding Standards passes both locally and in CI; all seven checks are green. Six isolated HTTP checks passed for GET/POST XML-RPC, normal requests, and direct access with display_errors enabled. Workflow YAML parsing, action pins, permissions, release dependency, shell syntax, and git diff --check passed. No full WordPress integration test or real deployment was run.

Repository settings applied separately and verified: workflow tokens default to read-only; an active release-tag ruleset restricts creation, modification, and deletion of v* tags to repository admins. SVN secrets remain repository secrets under the tag-ruleset approach.

@github-actions

github-actions Bot commented Nov 15, 2026 •

Copy link
Copy Markdown

Test on Playground
Test this pull request on the Playground
or download the zip

This disposable preview downloads the PR artifact through the third-party nightly.link service; do not enter production credentials or private data.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

Signed-off-by: Filip Ilic <ilic.filip@gmail.com>
@jdevalk
jdevalk merged commit 6d07e27 into main Nov 17, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants